package es.ucm.plg.util;

import java.util.ArrayList;

public class ExcepcionLexica extends Exception{

	private static final long serialVersionUID = 1L;
	private StringBuffer causa;
	private ArrayList<Error> errores;
	
	public ExcepcionLexica(StringBuffer causa){
		this.causa = causa;
	}
	
	public ExcepcionLexica(ArrayList<Error> errores){
		this.errores = errores;
	}
	
	public StringBuffer getCausa(){
		return this.causa;
	}
	
	public ExcepcionLexica(String message){
		super(message);
	}

	public void setErrores(ArrayList<Error> errores) {
		this.errores = errores;
	}

	public ArrayList<Error> getErrores() {
		return errores;
	}
	
	

}
